-- GENERATED SPELL FOR [Ango'rosh Ogre] --


function spell0_18117(pUnit, Event) --@Enrage,Self--
pUnit:FullCastSpellOnTarget(8599,pUnit)
pUnit:RegisterEvent('Sorts_18117', 574, 1)
end

function spell1_18117(pUnit, Event) --@Kick,n/a--
pUnit:FullCastSpellOnTarget(11978,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_18117', 6295, 1)
end

function Sorts_18117(pUnit, Event)
local choix_sorts_18117 = math.random(0, 1)
if choix_sorts_18117 == 0 then
pUnit:RegisterEvent('spell0_18117', 1, 1)
end
if choix_sorts_18117 == 1 then
pUnit:RegisterEvent('spell1_18117', 1, 1)
end
end

function mob18117_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_18117', math.random(1500, 3000), 1)
end

function mob18117_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob18117_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob18117_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(18117, 1, 'mob18117_Action')
RegisterUnitEvent(18117, 2, 'mob18117_Leave')
RegisterUnitEvent(18117, 3, 'mob18117_Kill')
RegisterUnitEvent(18117, 4, 'mob18117_Die')
